package com.mkyong.common;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;
import br.com.news.rss.RSSReader;


public class RunMeJob extends QuartzJobBean {

	private RSSReader rSSReader;

	public void setrSSReader(RSSReader rSSReader) {
		this.rSSReader = rSSReader;
	}

	@Override
	protected void executeInternal(JobExecutionContext arg0) throws JobExecutionException {
		rSSReader.writeNews();

	}



}
